import request from '@/router/axios'

export const getList = params => {
  return request({
    url: '/biz-api/pv-supplier/suppliermaterialrecord/list',
    method: 'get',
    params
  })
}

export const getDetail = id => {
  return request({
    url: '/biz-api/pv-supplier/suppliermaterialrecord/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const remove = ids => {
  return request({
    url: '/biz-api/pv-supplier/suppliermaterialrecord/remove',
    method: 'post',
    params: {
      ids
    }
  })
}

export const save = row => {
  return request({
    url: '/biz-api/pv-supplier/suppliermaterialrecord/submit',
    method: 'post',
    data: row
  })
}
